import request from '@/utils/request'

// 查询RefundApplyController列表
export function listRefundApply(query) {
  return request({
    url: '/apply/RefundApply/list',
    method: 'get',
    params: query
  })
}

// 查询RefundApplyController详细
export function getRefundApply(id) {
  return request({
    url: '/apply/RefundApply/' + id,
    method: 'get'
  })
}

// doc docx 预览下载
export function getRefundPrint(id) {
    return request({
        url: '/apply/RefundApply/print/' + id,
        method: 'get'
      })
}

// 新增RefundApplyController
export function addRefundApply(data) {
  return request({
    url: '/apply/RefundApply',
    method: 'post',
    data: data
  })
}

// 修改RefundApplyController
export function updateRefundApply(data) {
  return request({
    url: '/apply/RefundApply',
    method: 'put',
    data: data
  })
}

// 删除RefundApplyController
export function delRefundApply(id) {
  return request({
    url: '/apply/RefundApply/' + id,
    method: 'delete'
  })
}

// 导出RefundApplyController
export function exportRefundApply(query) {
  return request({
    url: '/apply/RefundApply/export',
    method: 'get',
    params: query
  })
}